import request from '@/utils/request'

// 查询设备维修记录2列表
export function listProblemrecord(query) {
  return request({
    url: '/problemrecord/problemrecord/list',
    method: 'get',
    params: query
  })
}

// 查询设备维修记录2详细
export function getProblemrecord(ID) {
  return request({
    url: '/problemrecord/problemrecord/' + ID,
    method: 'get'
  })
}

// 新增设备维修记录2
export function addProblemrecord(data) {
  return request({
    url: '/problemrecord/problemrecord',
    method: 'post',
    data: data
  })
}

// 修改设备维修记录2
export function updateProblemrecord(data) {
  return request({
    url: '/problemrecord/problemrecord',
    method: 'put',
    data: data
  })
}

// 删除设备维修记录2
export function delProblemrecord(ID) {
  return request({
    url: '/problemrecord/problemrecord/' + ID,
    method: 'delete'
  })
}
